<?
$sajax = 1;
$title = 'Library';include("includes/functions.php");include("includes/sajax/functionsSajax.php");include("includes/sajax/sajax.php");
sajax_init();$sajax_request_type = "POST";sajax_export("saveProgramAddress");
sajax_export("saveProgramContact");
sajax_export("deleteProgramContact");
sajax_export("getProgramForEdit");
sajax_export("getContactForEdit");sajax_handle_client_request();
if ($_SESSION[logged] != 1) {
	header("Location: login.php");
}

include("includes/header.php"); ?>

<div style="margin-top: 10px; margin-left: 20px; width: 90%; text-align: left;">
<b>This section is currently under development and will be available shortly. 
<?
	/*
	$sql = "SELECT * from casa_categories WHERE CatType = 'F' ORDER BY CatName";
	$result = mysql_db_query($dbname,$sql);
	$fileList = '';
	$files = 0;
	while ($value = mysql_fetch_assoc($result)) {
		$catID   = $value[CID];
		$catName = stripslashes($value[CatName]);

		$sql2 = "SELECT * from casa_shared_files WHERE CatID = '$catID' ORDER BY FileTitle DESC"; 
		$result2 = mysql_db_query($dbname,$sql2);
		$rows2 = mysql_num_rows($result2);

		if ($rows2>0) { $fileList .= '<h2>'.$catName.'</h2>'; }

		$i=1;
		while ($value2 = mysql_fetch_assoc($result2)) {
			if (($i % 2) > 0) { $class = 'noRowClass'; }
			else { $class = "altRow"; }

			$fID    = $value2[SFID];
			$fTitle = stripslashes($value2[FileTitle]);
			$fDesc  = stripslashes($value2[FileDesc]);
			$fName  = stripslashes($value2[FileName]);
			$fDate  = $value2[FileDate];
			$active = $value2[Active];

			// Determine if filename is a web link
			if (substr($fName,0,4) == 'http') {
				$fURL = $fName;
			} else {
				$fURL = '../docs/Shared Files/'.$fName;
			}

			$fileList .= '<div class="'.$class.'" id="row'.$fID.'">';
			$fileList .= '<div style="padding: 3px; text-align: center; vertical-align: top; width: 50px; float: left;">';
				$fileList .= '<div style="display: none;" id="control'.$fID.'">';
				$fileList .= '<a href="#" onClick="editFile('.$fID.'); return false;"><img src="images/buttonEditBig.gif" style="border: none;" alt="Edit" /></a>';
				$fileList .= '&nbsp;<a href="#" onClick="confirmDelete(\''.$fID.'\',\'file\'); return false;"><img src="images/buttonDeleteBig.gif" style="border: none;" alt="Delete" /></a>';
				$fileList .= '</div>';
			$fileList .= '</div><div style="width: 90%; float: left; padding: 3px;">';			
			$fileList .= '<p><a href="'.$fURL.'" target="_blank"><b>'.$fTitle.'</b></a></p>';
			$fileList .= '<p>'.$fDesc.'</p>';
			$fileList .= '<p>Added: '.mysql_to_date2($fDate).'<br />';
			$fileList .= 'Filename: '.$fName;
			$fileList .= '</div><div style="clear: left; height: 10px;"></div></div>';

			$i++;
			$files++;
		}
		$fileList .= '<div style="height: 20px;"></div>';	
	}	
	if ($files == 0) {
		$fileList = 'There are currently no files.';
	}
	
	echo $fileList;
	*/
?></div><br /><? include("includes/footer.php"); ?>		